
#include "IdentifiantTest.h"

void IdentifiantTest::TestAnalyse(void ) {
	// Test d'identifiants correct et incorrect.
	Identifiant id1;
	id1.setParametre("test");
	CPPUNIT_ASSERT(id1.toString() == "test");

	Identifiant id2;
	id2.setParametre("TeST_test");
	CPPUNIT_ASSERT(id2.toString() == "TeST_test");

	Identifiant id3;
	id3.setParametre("test3");
	CPPUNIT_ASSERT(id3.toString() == "errorId");

}

